import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/mes-qms/qms_lock_finished/page',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  });
};

export const partLock = (data) => {
  return request({
    url: '/api/mes-qms/qms_lock_finished/lock',
    method: 'post',
    data
  });
};

export const getDetail = (id) => {
  return request({
    url: '/api/mes-qms/qms_lock_finished/detail',
    method: 'get',
    params: {
      id
    }
  });
};

export const unLock = (data) => {
  return request({
    url: '/api/mes-qms/qms_lock_finished/unlock',
    method: 'post',
    data
  });
};
